package it.polimi.swKnights.SWIMv2.ejb.modifyData;

import it.polimi.swKnights.SWIMv2.ejb.exceptions.InvalidConfirmationException;
import it.polimi.swKnights.SWIMv2.ejb.exceptions.InvalidLoginPrivilegesException;
import it.polimi.swKnights.SWIMv2.ejb.exceptions.LoginFailException;

import javax.ejb.Remote;

@Remote
public interface ModifyDataBeanRemote
{

	void modifyUserData(String username, String password, String name,
			String surname, String email, String sex, String birthday, String address, 
			String passwordGiven, String passwordConfirm, String city,
			String street, String number)
			throws LoginFailException, InvalidLoginPrivilegesException;


	void modifyUserImage(String username, String password, String image)
			throws LoginFailException, InvalidLoginPrivilegesException;

	void modifyVisibility(String username, String password, boolean isPublic)
			throws LoginFailException, InvalidLoginPrivilegesException;

	void modifyPassword(String userName, String password, String newPassword, String confPassword, String oldPassword)
			throws LoginFailException, InvalidLoginPrivilegesException, InvalidConfirmationException;

}
